From a3467e885268551d84b6e6fdad2d71560ccace7a Mon Sep 17 00:00:00 2001 From: Debian Xen Team Date: Sun, 8 Jul 2018 13:30:32 +0100 Subject: [PATCH] tools-fake-xs-restrict Gbp-Pq: Topic xenstore Gbp-Pq: Name tools-fake-xs-restrict.patch --- tools/xenstore/include/xenstore.h | 5 +++++ tools/xenstore/xs.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/tools/xenstore/include/xenstore.h b/tools/xenstore/include/xenstore.h index de591106ea..edf62718b4 100644 --- a/tools/xenstore/include/xenstore.h +++ b/tools/xenstore/include/xenstore.h @@ -133,6 +133,11 @@ bool xs_mkdir(struct xs_handle *h, xs_transaction_t t, bool xs_rm(struct xs_handle *h, xs_transaction_t t, const char *path); +/* Fake function which will always return false (required to let + * libxenstore remain at 3.0 version. + */ +bool xs_restrict(struct xs_handle *h, unsigned domid); + /* Get permissions of node (first element is owner, first perms is "other"). * Returns malloced array, or NULL: call free() after use. */ diff --git a/tools/xenstore/xs.c b/tools/xenstore/xs.c index 0355d3d1a1..4e99bf8231 100644 --- a/tools/xenstore/xs.c +++ b/tools/xenstore/xs.c @@ -798,6 +798,12 @@ unwind: return false; } +/* Always return false a functionality has been removed in Xen 4.9 */ +bool xs_restrict(struct xs_handle *h, unsigned domid) +{ + return false; +} + /* Watch a node for changes (poll on fd to detect, or call read_watch()). * When the node (or any child) changes, fd will become readable. * Token is returned when watch is read, to allow matching. -- 2.30.2